package org.teamh.gui.ingame;

import org.teamh.gui.engine.model.Model;
import org.teamh.gui.engine.model.ModelLoader;

public class ObjectPath {
	public static int CREEP_AMOUNT = 16;
	public static int TOWER_AMOUNT = 6;
	public static String[] creep = new String[CREEP_AMOUNT];
	public static String[] tower = new String[TOWER_AMOUNT];
	public static String[] tower_model_1 = new String[TOWER_AMOUNT];
	public static String[] tower_model_2 = new String[TOWER_AMOUNT];
	private static Model tower_model_object;
	private static Model tower_model_colored;
	private static int creepValue = -1;
	
	public static Model get_Tower_Object_obj(int value) {
		
		tower_model_1[0] = "res/model/tower/basic_tower.obj";
		tower_model_1[1] = "res/model/tower/slow_tower.obj";
		tower_model_1[2] = "res/model/tower/splash_tower.obj";
		tower_model_1[3] = "res/model/tower/rocket_tower.obj";
		tower_model_1[4] = "res/model/tower/speed_tower.obj";
		tower_model_1[5] = "res/model/tower/ultimate_tower.obj";
		tower_model_object=ModelLoader.getModel(tower_model_1[value]);
		return tower_model_object;
	}

	public static Model get_Tower_Object_colored(int value) {
		
		tower_model_2[0] = "res/model/tower/basic_tower_colored.obj";
		tower_model_2[1] = "res/model/tower/slow_tower_colored.obj";
		tower_model_2[2] = "res/model/tower/splash_tower_colored.obj";
		tower_model_2[3] = "res/model/tower/rocket_tower_colored.obj";
		tower_model_2[4] = "res/model/tower/speed_tower_colored.obj";
		tower_model_2[5] = "res/model/tower/ultimate_tower_colored.obj";
		tower_model_colored=ModelLoader.getModel(tower_model_2[value]);
		return tower_model_colored;
	}
	

	public static String tower(int select) {
		tower[0] = "Basic";
		tower[1] = "Slow";
		tower[2] = "Splash";
		tower[3] = "Rocket";
		tower[4] = "Speed";
		tower[5] = "Ultimate";
		return tower[select];
	}

	public static String creepDescription(int select) {
		if(select==-1){
			return "";
		}
		creep[0] = "Mercury";
		creep[1] = "Mako";
		creep[2] = "Fast Nova";
		creep[3] = "Large Manta";
		creep[4] = "Demeter";
		creep[5] = "Ray";
		creep[6] = "Speedy Raider";
		creep[7] = "Big Toucan";
		creep[8] = "Vulture";
		creep[9] = "Shark";
		creep[10] = "Racing Mamba";
		creep[11] = "Huge Titan";
		creep[12] = "Zeus";
		creep[13] = "Phoenix";
		creep[14] = "Express Raptor"; 
		creep[15] = "Fat Colossus";
		return creep[select];
	}
	
	public static String sendCreep(int select) {
		if(select==-1){
			return "";
		}
		creep[0] = "Mercury";
		creep[1] = "Mako";
		creep[2] = "FastNova";
		creep[3] = "LargeManta";
		creep[4] = "Demeter";
		creep[5] = "Ray";
		creep[6] = "SpeedyRaider";
		creep[7] = "BigToucan";
		creep[8] = "Vulture";
		creep[9] = "Shark";
		creep[10] = "RacingMamba";
		creep[11] = "HugeTitan";
		creep[12] = "Zeus";
		creep[13] = "Phoenix";
		creep[14] = "ExpressRaptor"; 
		creep[15] = "FatColossus";
		return creep[select];
	}


	public static void selectedCreep(int selectedCreep){
		creepValue=selectedCreep;
	}
	
	public static int getCreepValue() {
		return creepValue;
	}
	

}
